Page({
    data: {
        oneHeight: 0,
        oneTop: 0,
        headerHeight: 0,
    },
    onLoad() {
        let menuRect = wx.getMenuButtonBoundingClientRect();
        let deviceWidth = wx.getSystemInfoSync().windowWidth;
        let rpx = (750 / deviceWidth) * Number(menuRect.height + menuRect.top);
        let headerHeight = Math.floor(rpx);
        this.setData({
            oneHeight: menuRect.height,
            oneTop: menuRect.top,
            headerHeight: headerHeight,
        })
    },
    goBack() {
        wx.navigateBack({
            delta: 1
        });
    },
    onShareAppMessage() {
        return {};
    },
    jumpToOrder() {
        wx.navigateTo({
            url: '/pages/querendingdan_peisong/querendingdan_peisong'
        })
    }
});
